﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using W.Common;
using W.Common.Enum;

namespace W.Purchase.Domain
{
    /// <summary>
    /// 产品信息采购表
    /// </summary>
    public class BuyProducts : BaseModel
    {
        [Key]
        public int BuyProductsId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? ProductName { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        public string? ProductNo { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? ProductSpec { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? UnitName { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string? Batch { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? Price { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int? BuyProductsNum  { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public decimal? BuyProductsTotal { get; set; }
        /// <summary>
        /// 采购id
        /// </summary>
        public int? ProcurementId  { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public ProcurementState? ProcurementState { get; set; }
        /// <summary>
        /// 是否入账
        /// </summary>
        public bool? IsRecorded { get; set; }
        /// <summary>
        /// 是否退货
        /// </summary>
        public bool? IsReturn { get; set; }
        /// <summary>
        /// 退货单号
        /// </summary>
        public string? ReturnNo { get; set; }
        /// <summary>
        /// 退货数
        /// </summary>
        public int? ReturnsNum { get; set; }
        /// <summary>
        /// 公司ID
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int? user_id { get; set; }
    }
}
